
set(COMPONENT_SRCS
                    "mlink_handle.c"
                    "mlink_httpd.c"
                    "mlink_json.c"
                    "mlink_notice.c"
                    "mlink_trigger.c"
                    "mlink_scenes.c"
                    "mlink_utils.c"
                    "file_server.c")

set(COMPONENT_INCLUDEDIRS "include")

# requirements can't depend on config
set(COMPONENT_REQUIRES mcommon mupgrade json mdns esp_http_server app_aes spiffs)

idf_component_register(SRCS "mlink_subdevice.c" "${COMPONENT_SRCS}"
                    INCLUDE_DIRS "${COMPONENT_INCLUDEDIRS}"
                    REQUIRES "${COMPONENT_REQUIRES}"
                    EMBED_FILES "upload_script.html")
